package com.zhbit.service;

import javax.annotation.Resource;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.zhbit.dao.UserDao;
import com.zhbit.dao.UserDaoImpl;
import com.zhbit.domain.User;

@Transactional
public class UserServiceImpl implements UserService{
	@Resource
	UserDao userDao;

	@Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true)
	@Override
	public boolean Login(User user) {
		// TODO Auto-generated method stub
		//userDao = new UserDaoImpl();
		System.out.println("a");
		return userDao.Login(user);
 	}
}
